<?php

/**
 * 推荐位定义区位
 */
Route::get('recommend/apppage_rectpl_areas', ['as'=> 'recommend.apppage_rectpl_areas.index', 'uses' => 'Recommend\ApppageRectplAreaController@index']);
Route::post('recommend/apppage_rectpl_areas', ['as'=> 'recommend.apppage_rectpl_areas.store', 'uses' => 'Recommend\ApppageRectplAreaController@store']);
Route::get('recommend/apppage_rectpl_areas/create', ['as'=> 'recommend.apppage_rectpl_areas.create', 'uses' => 'Recommend\ApppageRectplAreaController@create']);
Route::put('recommend/apppage_rectpl_areas/{apppage_rectpl_areas}', ['as'=> 'recommend.apppage_rectpl_areas.update', 'uses' => 'Recommend\ApppageRectplAreaController@update']);
Route::patch('recommend/apppage_rectpl_areas/{apppage_rectpl_areas}', ['as'=> 'recommend.apppage_rectpl_areas.update', 'uses' => 'Recommend\ApppageRectplAreaController@update']);
Route::delete('recommend/apppage_rectpl_areas/{apppage_rectpl_areas}', ['as'=> 'recommend.apppage_rectpl_areas.destroy', 'uses' => 'Recommend\ApppageRectplAreaController@destroy']);
Route::get('recommend/apppage_rectpl_areas/{apppage_rectpl_areas}', ['as'=> 'recommend.apppage_rectpl_areas.show', 'uses' => 'Recommend\ApppageRectplAreaController@show']);
Route::get('recommend/apppage_rectpl_areas/{apppage_rectpl_areas}/edit', ['as'=> 'recommend.apppage_rectpl_areas.edit', 'uses' => 'Recommend\ApppageRectplAreaController@edit']);


/**
 * 栏目添加推荐位数据
 */
// 一级栏目推荐视图
Route::get('recommend/apppage_rectpl_areas/rectpl_datas/view',['as'=>'recommend.apppage_rectpl_areas.add_rectpl_data','uses' => 'Recommend\ApppageRectplAreaController@addpageRectplDatas']);
// 渲染datatable数据
Route::post('recommend/apppage_rectpl_areas/rectpl_datas/datas',['as'=>'recommend.apppage_rectpl_areas.datas','uses'=>'Recommend\ApppageRectplAreaController@getDataByDataType']);
// 保存推荐数据
Route::post('recommend/apppage_rectpl_areas/rectpl_datas/datas/store',['as'=>'recommend.apppage_rectpl_areas.datas.store','uses'=>'Recommend\ApppageRectplAreaController@pageRectplAreaDataStore']);